package com.willawn.androidtest.data;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.willawn.androidtest.test.R;

public class DataActivity extends Activity {
	private Button button1, btnOptFile, btnSQLite;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.data);
		
		button1 = (Button) findViewById(R.id.button1);
		button1.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(DataActivity.this, PreferenceActivity.class);
				startActivity(intent);
			}
		});
		
		btnOptFile = (Button) findViewById(R.id.btnOptFile);
		btnOptFile.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(DataActivity.this, FileActivity.class);
				startActivity(intent);
			}
		});
		
		btnOptFile = (Button) findViewById(R.id.btnOptFile);
		btnOptFile.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(DataActivity.this, FileActivity.class);
				startActivity(intent);
			}
		});
		
		btnSQLite = (Button) findViewById(R.id.btnSQLite);
		btnSQLite.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(DataActivity.this, AddActivity.class);
				startActivity(intent);
			}
		});
	}
}
